////////////////////////////////////////////////////////////////////////////////

#ifndef _PLAYER_H_
#define _PLAYER_H_

////////////////////////////////////////////////////////////////////////////////

#include "moving_object.h"
#include "weapon.h"

////////////////////////////////////////////////////////////////////////////////


/** Base class for all players
*
*  @author   Roman Pasechnik
*  @since    Jun 04th, 2009
*  @updated  Jun 09th, 2009
*/
class Player : public MovingObject
{
////////////////////////////////////////////////////////////////////////////////

public:

////////////////////////////////////////////////////////////////////////////////


    /** Constructor */
    Player();


    /** Destructor */
    virtual ~Player();


////////////////////////////////////////////////////////////////////////////////


    /** Gets the amount of player hit points */
    int GetHitPoints() const;


    /** Sets the amount of player hit points */
    void SetHitPoints( int _hitPoints );


    /** Tell's is player shooting or not */
    bool IsPlayerShooting() const;


    /** Sets fire mode */
    void SetPlayerShooting( bool _isShooting );


    /** Gets player aim position */
    STM::Position GetAimPosition() const;


    /** Sets player aim position */
    void SetAimPosition( const STM::Position& _position );


////////////////////////////////////////////////////////////////////////////////

private:

////////////////////////////////////////////////////////////////////////////////


    /** Players weapon */
    Weapon m_Weapon;


    /** Players aim */
    STM::Position m_AimPosition;


    /** Player's hit points */
    int m_HitPoints;


    /** Is player shooting at the moment */
    bool m_IsShooting;


////////////////////////////////////////////////////////////////////////////////
};


////////////////////////////////////////////////////////////////////////////////

#endif

////////////////////////////////////////////////////////////////////////////////
